/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GameState;

import GameObject.ChessBoard;
import GameObject.Player;
import javax.media.opengl.GL2;

/**
 *
 * @author trong_000
 */
public class MainGame implements IGameState {

    private ChessBoard chessBoard;
    private Player player1;
    private Player player2;
    
    public MainGame(){
        
    }
    @Override
    public void init() {
        //Khoi tao board, player
    }

    @Override
    public void exit() {
        
    }

    @Override
    public void update(float elapsedTime) {
        player1.takeTurn();
        player2.takeTurn();
    }

    @Override
    public void render(GL2 gl) {
        chessBoard.draw(gl);
    }
    
}
